<!DOCTYPE html>
<html>

<head>

    <title>Digital</title>
    <script>
       do {
           var name = prompt("What is your name");
           console.log(name);
           var correct = confirm("You entered '" + name +"' .\n" +
                "Click Okey to proceed or Cancel to re-enter."
           ); 
       } while (!coorect) {
           alert("Hello," + name);  // 输出一个纯文本信息
       }
    </script>

</head>



<body>


    <script>

    </script>


</body>

</html>